﻿using Abp.Application.Services;
using Abp.Domain.Repositories;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WanFang.IRepositories;

namespace WanFang.Test
{
    public class JianCeService : IJianCeService, IApplicationService
    {
        private readonly IRepository<JianCe> _repository;
        public JianCeService(IRepository<JianCe> repository)
        {
            _repository = repository;
        }
        public int Add(JianCe entity)
        {
            return _repository.InsertAndGetId(entity);
        }
    }
}
